﻿using UnityEngine;
using System.Collections;

public class controlAnimator : MonoBehaviour {
	private Animator control;
	// Use this for initialization
	void Start () {
		control=GetComponent<Animator>();
	}

	void atacar(){
		control.SetBool("ataca",true);
	}

	void detenerAtaque(){
		control.SetBool("ataca",false);
	}
	// Update is called once per frame
	void Update () {
		
	}
}
